 # 数字类型
num1 = 12
num2 = 1.76
num3 = True
# 知道上面变量的数据类型,通过print(对象)
print(type(num1))  # int :整数
print(type(num2))  # float :小数
print(type(num3))  # bool :布尔值（True/False）
# 非数字类型（序列类型）
a1 = "abc"
a2 = [11, "张三", 1.11]
a3 = (11, "张三", 1.11)
a4 = {11, "张三", 1.11}
a5 = {"name": "张三", "age": 18}
print(type(a1))  # str : 字符串
print(type(a2))  # list : 列表
print(type(a3))  # tuple : 元组
print(type(a4))  # set : 集合
print(type(a5))  # dict : 字典


# 定义数据
num1 = "100"
num2 = "1.99"
# 强制转换
print(type(num1))
# print(type(float(num2)))
# print(type(float(num1)))
info = 12345
info1 = [11,"aa0",True,1.88]
print(type(str(info1)))
# print(type(tuple(info1)))
# info2 = [11, 22, 33, 11, 11, 11, 33, 44]
# print(set(info2))
# print(type(set(info2)))